<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants,com.hs.core.utils.*" pageEncoding="UTF-8"%>
<%@ page import ="cn.ac.cintcm.dataconverge.researchsubject.domain.*,cn.ac.cintcm.dataconverge.researcher.domain.*" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String subjectId = request.getParameter("subjectId");
AchievemanAchievement obj = (AchievemanAchievement)request.getAttribute("achObj");
%>


 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>科研项目管理与数据汇交平台</title>  
	<script language="javascript" type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
	<script language="javascript" src="<%=basePath %>index/Scripts/script.js"></script>
	<script language="javascript" src="<%=basePath %>js/common.js"></script>
	<link href="<%=basePath %>index/Themes/com/style.css" type="text/css" rel="stylesheet"></link>
	<script src='<%=basePath%>dwr/engine.js'></script>
     <script src='<%=basePath%>dwr/util.js'></script> 
     <script src='<%=basePath%>dwr/interface/subject.js'></script>
    <script type="text/javascript" language="javascript">
      var achId = "<%=obj == null?"":obj.getId()%>";  
	function checkForm(){ 
	    var flag = false;
		if(isNull(form2.regId.value)){
			alert("请填写成果登记号");
			form2.regId.focus();
			return false;
		} 
		if(isNull(form2.checkupOrg.value)){
			alert("请填写成果鉴定部门");
			form2.checkupOrg.focus();
			return false;
		} 
		 
		return true;
	} 
        
	function saveData(modId,tomodId){
		if(checkForm()){ 
		   form2.action = "<%=path%>/achieve.htm?action=saveData&modId="+modId+"&subjectId=<%=subjectId%>&tomodId="+tomodId;
		   form2.submit(); 
	   } 
	}
	function changeTop(){
         var obj = parent.frames("bannerFrame"); 
         obj.location.href="<%=path%>/achieve.htm?action=top&modId=3&achId=<%=obj==null?"":obj.getId() %>";
    }
</script>  
</head>
<body class="rtm_body" scroll=yes>
<form name="form2" action="" method="post">
     
           <div style="margin-top:0px">
     <table id="Table9" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr valign="top"> 
                <td class="fw_ptmain_bd_05" align="left" style="height: 155px;">
                    
                      <table  cellspacing="0" cellpadding="0" width="100%" style="border-right: #9b9b9b 1px solid;
                        border-left: #9b9b9b 0px solid; border-bottom: #9b9b9b 1px solid" id="Table22"
                        border="0"> 
                        <tr align="center">
                            <td valign="top">
                                <!--三部分内容-->
                                <div class="tab2_fim_div" id="navDiv10"> 
                        			 	<div id="tdForm"> 
		                                    <table border="0" cellpadding="0" cellspacing="1" width="100%"   class="dg_borderstyle">
		                                       
		                                        <tr>
		                                            <td class="fim_l" width="10%">登记号(<font color="red">＊</font>)</td>
		                                            <td class="fim_r"  colspan="3">
		                                            <input type="text" name="regId" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getRegid()) %>" class="com_textbox" style="width:100%"/></td>
		                                              <input type="hidden" name="achId" value="<%=obj==null?"":obj.getId() %>" /> 
		                                        </tr> 
		                                        <tr>
		                                            <td class="fim_l" width="10%">登记时间</td>
		                                            <td class="fim_r"  width="40%"> 
		                                           <input type="text" class="Wdate" id="regDate" value="<%=obj==null?"":Tools.getDateString(obj.getRegdate()) %>" style="width:99%" name="regDate"  onFocus="WdatePicker({el:'regDate',dateFmt:'yyyy-MM-dd'})" />
		                                            </td> 
		                                             <td class="fim_l" width="10%">登记部门</td>
		                                            <td class="fim_r"  >
		                                             <input type="text" name="regOrg" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getRegorg()) %>" class="com_textbox" style="width:100%"/></td> 
		                                        </tr> 
		                                         <tr>
		                                            <td class="fim_l" width="10%">所属省市</td>
		                                            <td class="fim_r"  > 
		                                           <input type="text" name="province" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getProvince()) %>" class="com_textbox" style="width:100%"/>
		                                            </td> 
		                                             <td class="fim_l" width="10%">鉴定部门(<font color="red">＊</font>)</td>
		                                            <td class="fim_r"  >
		                                             <input type="text" name="checkupOrg" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getCheckuporg()) %>" class="com_textbox" style="width:100%"/></td> 
		                                        </tr> 
		                                        <tr>
		                                            <td class="fim_l" width="10%">鉴定日期</td>
		                                            <td class="fim_r"  > 
		                                           <input type="text" class="Wdate" id="checkupDate" value="<%=obj==null?"":Tools.getDateString(obj.getCheckupdate()) %>" style="width:99%" name="checkupDate"  onFocus="WdatePicker({el:'checkupDate',dateFmt:'yyyy-MM-dd'})" />
		                                            </td> 
		                                             <td class="fim_l" width="10%">鉴定形式</td>
		                                            <td class="fim_r"  >
			                                             <input type="radio" name="checkupForm" value="1" <%if(null != obj && "1".equals(obj.getCheckupform())){out.println(" checked");} %>>检验鉴定 
			                                             <input type="radio" name="checkupForm" value="2" <%if(null != obj && "2".equals(obj.getCheckupform())){out.println(" checked");} %>>函审鉴定 
			                                             <input type="radio" name="checkupForm" value="3" <%if(null != obj && "3".equals(obj.getCheckupform())){out.println(" checked");} %>> 会议鉴定
														<input type="radio" name="checkupForm" value="0" <%if(null != obj && "0".equals(obj.getCheckupform())){out.println(" checked");} %>> 其它</td> 
		                                        </tr> 
		                                        <tr>
		                                            <td class="fim_l" width="10%">鉴定证书号</td>
		                                            <td class="fim_r"  > 
		                                           <input type="text" name="checkNo" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getCheckno()) %>" class="com_textbox" style="width:100%"/>
		                                            </td> 
		                                             <td class="fim_l" width="10%">鉴定委员会名单</td>
		                                            <td class="fim_r"  >
		                                             <input type="text" name="checkList" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getChecklist()) %>" class="com_textbox" style="width:100%"/></td> 
		                                        </tr> 
		                                         
		                                        <tr>
		                                            <td class="fim_l" width="10%">鉴定意见</td>
		                                            <td class="fim_r"   colspan="3">
		                                            <textarea rows="5"  class="com_textarea" cols=""   style="background-color: #F9F2A5;"  name="checkDesc" style="width:100%;" ><%=obj==null?"":StringUtilTool.NULL2Blank(obj.getCheckdesc()) %></textarea>
		                                            
                                                 </td> 
		                                        </tr>  
		                                         <tr>
		                                            <td class="fim_l" width="10%">鉴定证书结果</td>
		                                            <td class="fim_r"   colspan="3">
		                                            <input type="radio" name="checkupResult" value="1" <%if(null != obj && "1".equals(obj.getCheckupresult())){out.println(" checked");} %>>通过
		                                             <input type="radio" name="checkupResult" value="2" <%if(null != obj && "2".equals(obj.getCheckupresult())){out.println(" checked");} %>>不通过</td> 
		                                        </tr> 
		                                         <tr>
		                                            <td class="fim_l" width="10%">评价单位</td>
		                                            <td class="fim_r"  > 
		                                           <input type="text" name="valueOrg" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getValueorg()) %>" class="com_textbox" style="width:100%"/>
		                                            </td> 
		                                             <td class="fim_l" width="10%">评价日期</td>
		                                            <td class="fim_r"  >
		                                             <input type="text" class="Wdate" id="valueDate" value="<%=obj==null?"":Tools.getDateString(obj.getValuedate()) %>" style="width:99%" name="valueDate"  onFocus="WdatePicker({el:'valueDate',dateFmt:'yyyy-MM-dd'})" /></td> 
		                                        </tr>  
		                                        <tr>
		                                            <td class="fim_l" width="10%">评价证书号</td>
		                                            <td class="fim_r"  > 
		                                           <input type="text" name="valueNo" value="<%=obj==null?"":StringUtilTool.NULL2Blank(obj.getValueno()) %>" class="com_textbox" style="width:100%"/>
		                                            </td> 
		                                             <td class="fim_l" width="10%">评价方式</td>
		                                            <td class="fim_r"  >
		                                           <input type="radio" name="valueManner" value="1" <%if(null != obj && "1".equals(obj.getValuemanner())){out.println(" checked");} %>>鉴定
													 <input type="radio" name="valueManner" value="2" <%if(null != obj && "2".equals(obj.getValuemanner())){out.println(" checked");} %>>验收 
													 <input type="radio" name="valueManner" value="3" <%if(null != obj && "3".equals(obj.getValuemanner())){out.println(" checked");} %>>行业准入
													  <input type="radio" name="valueManner" value="4" <%if(null != obj && "4".equals(obj.getValuemanner())){out.println(" checked");} %>>评估 
													  <input type="radio" name="valueManner" value="5" <%if(null != obj && "5".equals(obj.getValuemanner())){out.println(" checked");} %>>知识产权
		                                        </tr>  
		                                           <tr>
		                                        <td colspan=4> 
		                                        <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
				                                    <tr>
				                                        <td align="center">
				                                             <input type="button" value=" 保存 "   class="com_btn2"   onclick="saveData('3','3')" /> &nbsp;&nbsp;<input type="button" value=" 上一步 "   class="com_btn2"   onclick="saveData('3','2')" />&nbsp;&nbsp;<input type="button" value=" 下一步 "   class="com_btn2"   onclick="saveData('3','4')" />
				                                        </td>
				                                    </tr>
				                                </table>
                                                </td>
                                                </tr>
		                                    </table>   
                               			</div> 
                                </div>
                            </td>
                        </tr>
                       
                    </table>
             	 </td>
              </tr>
           </table>
         </div> 
            
         </form>
         
</body>
</html> 
<script>
changeTop();

</script>